var userName = process.argv[2];
var pwd = process.argv[3];
var str = "userName: " + userName + " pwd: " + pwd;
// console.log(str);

var buf1 = Buffer.from(str); //默认utf8的编码方式
var str1 = buf1.toString("base64");//向字符串转换时
console.log(str1);


